package com.vlefen.springcloud.grpc;

import com.vlefen.springcloud.grpc.config.GRpcClientAutoConfiguration;
import com.vlefen.springcloud.grpc.config.GRpcProperties;
import com.vlefen.springcloud.grpc.config.GRpcServerAutoConfiguration;
import org.springframework.boot.autoconfigure.ImportAutoConfiguration;
import org.springframework.context.annotation.Import;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Import({GRpcProperties.class})
@ImportAutoConfiguration({GRpcClientAutoConfiguration.class, GRpcServerAutoConfiguration.class})
public @interface EnableGRpc {
}
